{% autoescape None %}
{% extends "../../theme/bage.html" %}
{% block head %}
<script>
    function rel_del(reply_id, id_num) {

        id_num = id_num.toString();
        var AjaxUrl = "/reply_j/delete/" + reply_id;
        $.getJSON(AjaxUrl, function (Json) {
            $("#del_info_" + id_num).html('');
        });

    }
</script>
{% end %}
{% block typebody %}

<ol class="breadcrumb">
    <li>{{ _('Current location') }}: <a href="{% module site_url() %}">{{ _('Home') }}</a></li>
    <li><a href="/user/info"> {{ _('User Info') }}</a></li>
    <li class="active">
        {{ _('My comments') }}
    </li>
</ol>

<div class="row">
    <div class="col-md-12">
        <div class="panel panel-black">
            <div class="panel-heading">


                {{ _('My comments') }}


            </div>
            <div class="panel-body">


                {% set ii = 0 %}


                {% for x in reply %}

                <div class="row" id="del_info_{{ ii }}">

                    <div class="col-sm-12">

                        <h4>
                            <a href="/data/{{ x.post_id }}">
                                {% module reply_post_by_id(x.post_id,x.uid) %}
                            </a>
                            <br> <br>
                            {{ x.cnt_md }}
                        </h4>

                    </div>


                    <div class="col-sm-12">
                        <a href="/data/{{ x.post_id }}">
                            <span class="glyphicon glyphicon-eye-open"></span>
                            查看
                        </a>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a onclick="rel_del('{{ x.uid }}', {{ ii }} );">
                            <span class="glyphicon glyphicon-trash"></span>
                            删除
                        </a>

                    </div>

                </div>
                <br><br>
                {% set ii = ii + 1 %}
                {% end %}


            </div>

        </div>
        {% module reply_user_pager(kwd['current_page'],kwd['user_id'],ext_field=kwd['ext_field']) %}
    </div>

</div>

{% end %}
